package com.hsgene.sample.constants;

/**
 * @Description: //TODO
 * @ProjectName: hdas-geneshop-server
 * @Package: com.hsgene.sample.constants
 * @Author: FX
 * @CreateDate: 2019/1/7 19:26
 * @Version: 1.0
 * Copyright: Copyright (c) 2019
 */
public enum LabelKey {
    /**
     * 白片数量
     */
    WHITE_FILM(1,"需要白片数量"),
    HOSPITAL_CODE(2,"需要医院编码"),
    SEND_BACK_WAX_BLOCKS(3,"需要寄回蜡块"),
    BLOOD_COLLECTION_TUBE_PHOTO(4,"需要采血管照片"),
    CONSUMABLES(5,"需要耗材")
    ;
    private int code;

    private String desc;

    LabelKey(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static LabelKey getEnum(int code){
        for (LabelKey labelKey:values()){
            if(labelKey.code==code){
                return labelKey;
            }
        }
        return null;
    }
}
